package io.github.talelin.latticy.service.impl;

import io.github.talelin.latticy.bo.rule.ChargeAbsoluteBO;
import io.github.talelin.latticy.model.ChargeAbsoluteDO;
import io.github.talelin.latticy.mapper.ChargeAbsoluteMapper;
import io.github.talelin.latticy.service.ChargeAbsoluteService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author generator@wulongbo
 * @since 2022-08-25
 */
@Service
public class ChargeAbsoluteServiceImpl extends ServiceImpl<ChargeAbsoluteMapper, ChargeAbsoluteDO> implements ChargeAbsoluteService {

    @Override
    public List<ChargeAbsoluteBO> getAllChargeAbsolute() {
        return this.baseMapper.getAllChargeAbsolute();
    }

    @Override
    public boolean deleteChargeAbsoluteByChargeItemId(Integer chargeItemId) {
        return this.baseMapper.deleteChargeAbsoluteByChargeItemId(chargeItemId) > 0;
    }
}
